if (typeof(tm) !== "undefined" && typeof(tm.ch) === "undefined") {
    tm.ch = {
        s: "",
        x: "",
        r: escape(screen.width + "x" + screen.height),
        p: "",
        f: 0,
        ssl: false,
        init: function() {
            if (typeof(tm.ts) === "undefined") {
                tm.ch.x = tm.ch.gc("trk_mouse_" + tm.id + "_x=");
                if (tm.ch.x == null) {
                    tm.ch.x = escape(document.referrer.split("?")[0]);
                    if (tm.ch.x != "") {
                        var ref = tm.ch.x.split("/")[2];
                        if (ref == window.location.hostname) {
                            tm.ch.x = "null";
                        }
                    } else {
                        tm.ch.x = "null";
                    }
                    tm.ch.f = 1;
                } else if (tm.ch.x == "") {
                    tm.ch.x = "null";
                }
                tm.ch.p = window.location.pathname;
                if (tm.ch.p.search(/index./) != -1) {
                    tm.ch.p = tm.ch.p.split("index.")[0];
                }
                tm.ch.p = encodeURIComponent(tm.ch.p.split("?")[0]);
                document.write(unescape("%3Cscript src='http://p.trakk247.com/pl/preload.js?c="+escape(tm.id)+"&r="+tm.ch.r+"&x="+tm.ch.x+"&f="+tm.ch.f+"&p="+tm.ch.p+"&s=0' type='text/javascript'%3E%3C/script%3E"));
            }
        },
        gc: function(csearch) {
            var i = 0;
            while (i < document.cookie.length) {
                if (document.cookie.substring(i, i+csearch.length) == csearch) {
                    var ende = document.cookie.indexOf(";", i+csearch.length);
                    ende = (ende > -1) ? ende : document.cookie.length;
                    var cook = document.cookie.substring(i + csearch.length, ende);
                    return unescape(cook);
                    break;
                }
                i++;
            }
            return null;
        }
    };
    tm.ch.init();
}